﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DEMO.Y2015CS58.LIB
{
    //khai bao interface Bay
    public interface IBay
    {
        string Bay();
        
    }


    //Lớp Chim thừa kế interface IBay
    public class Chim : IBay
    {
        public virtual string Bay()
        {
            return "Chim: Bay";
        }
    }

    //Lớp MayBay thừa kế interface IBay
    public class MayBay : IBay
    {
        public virtual string Bay()
        {
            return "May Bay: Bay";
        }
    }

}
